<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    p {
      border: 5px solid red;
      outline: 5px solid blue;
    }

    input {
      /* outline: none; */
    }

    input:focus {
      outline: 5px solid blue;
    }
  </style>
</head>

<body>

  <p> this is tag p</p>

  <input type="text">

</body>

</html>